<?php
class JiaThisShareWidget extends CWidget{
	private $outString;
	private $controller;
	private $action;
	

	public function init(){
		$this->controller = Yii::app()->controller->id;  
        $this->action = Yii::app()->controller->action->id; 
	}

	public function run(){
		$this->tuijian();
		echo $this->outString;
	}

	public function tuijian(){
		$this->outString = <<<SHARE
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<a href="http://www.jiathis.com/share?uid=1571129" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">
var jiathis_config = {data_track_clickback:'true'};
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1571129" charset="utf-8"></script>
<!-- JiaThis Button END -->
SHARE;
	}


}
?>

